package com.dao.dataSource;


import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.LinkedHashMap;

@Mapper
@Repository
public interface DataColumnMapper {

    /*
 查询列信息
  */
    @Select("${tableName}")
    LinkedHashMap<String, Object> getColumn(@Param("tableName") String tableName);

    @Select("select id from bi_databases where id = #{id}")
    String getDbConfig(int id);

}
